#pragma once
#include "afxwin.h"
#include "preftab.h"
#include "resizablepage.h"

// CCoverTab dialog

class CCoverTab : public CResizablePage
{
	DECLARE_DYNAMIC(CCoverTab)

public:
	CCoverTab(CPrefTab *prefs, CAllTabs *allTabs);
	virtual ~CCoverTab();
	Album					*_currentAlbum;

// Dialog Data
	enum { IDD = IDD_COVERTAB };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	BOOL setResult(Album* album);

private:
	BOOL displayAlbum(void);
public:
	CPicView _coverPic;
	afx_msg void OnBnClickedSave();
	afx_msg void OnBnClickedReload();
	CEdit _coverMessage;
	afx_msg void OnPaint();
	BOOL _refresh;

public:
	CPrefTab* _prefs;
	CAllTabs* _allTabs;
//	afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnBnClickedLoad();
};
